.class Lcom/instagram/android/b/m;
.super Ljava/lang/Object;
.source "InstagramAnalyticsLogger.java"

# interfaces
.implements Lcom/instagram/android/b/k;


# instance fields
.field final synthetic a:Lcom/instagram/android/b/h;


# direct methods
.method private constructor <init>(Lcom/instagram/android/b/h;)V
    .locals 0
    .parameter

    .prologue
    .line 615
    iput-object p1, p0, Lcom/instagram/android/b/m;->a:Lcom/instagram/android/b/h;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 616
    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/android/b/h;Lcom/instagram/android/b/i;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 613
    invoke-direct {p0, p1}, Lcom/instagram/android/b/m;-><init>(Lcom/instagram/android/b/h;)V

    return-void
.end method

.method private b()V
    .locals 10

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 619
    const-string v0, "0"

    iget-object v3, p0, Lcom/instagram/android/b/m;->a:Lcom/instagram/android/b/h;

    invoke-static {v3}, Lcom/instagram/android/b/h;->l(Lcom/instagram/android/b/h;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 621
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v3

    .line 622
    invoke-virtual {v3}, Lcom/instagram/m/b/a;->s()J

    move-result-wide v4

    .line 624
    new-instance v0, Ljava/util/Date;

    invoke-direct {v0}, Ljava/util/Date;-><init>()V

    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v6

    .line 625
    const-wide/32 v8, 0x2932e00

    add-long/2addr v4, v8

    cmp-long v0, v6, v4

    if-lez v0, :cond_0

    .line 626
    new-instance v4, Lcom/instagram/android/b/g;

    iget-object v0, p0, Lcom/instagram/android/b/m;->a:Lcom/instagram/android/b/h;

    invoke-static {v0}, Lcom/instagram/android/b/h;->m(Lcom/instagram/android/b/h;)Landroid/content/Context;

    move-result-object v0

    invoke-direct {v4, v0}, Lcom/instagram/android/b/g;-><init>(Landroid/content/Context;)V

    .line 627
    iget-object v5, p0, Lcom/instagram/android/b/m;->a:Lcom/instagram/android/b/h;

    new-instance v8, Lcom/instagram/b/b;

    const-string v0, "device_info"

    const/4 v9, 0x0

    invoke-direct {v8, v0, v9}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v9, "sound"

    invoke-virtual {v3}, Lcom/instagram/m/b/a;->q()Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v1

    :goto_0
    invoke-virtual {v8, v9, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v8

    const-string v9, "save_originals"

    invoke-virtual {v3}, Lcom/instagram/m/b/a;->r()Z

    move-result v0

    if-eqz v0, :cond_2

    move v0, v1

    :goto_1
    invoke-virtual {v8, v9, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v8, "low_bandwidth"

    invoke-static {}, Lcom/instagram/creation/video/c/b;->c()Z

    move-result v9

    if-eqz v9, :cond_3

    :goto_2
    invoke-virtual {v0, v8, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "image_cache_size"

    invoke-static {}, Lcom/instagram/f/b/c;->a()Lcom/instagram/f/b/c;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/f/b/c;->b()J

    move-result-wide v8

    invoke-virtual {v0, v1, v8, v9}, Lcom/instagram/b/b;->a(Ljava/lang/String;J)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "video_cache_size"

    invoke-static {}, Lcom/instagram/android/mediacache/n;->a()Lcom/instagram/android/mediacache/n;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/mediacache/n;->b()J

    move-result-wide v8

    invoke-virtual {v0, v1, v8, v9}, Lcom/instagram/b/b;->a(Ljava/lang/String;J)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "app_store_package_name"

    invoke-virtual {v4}, Lcom/instagram/android/b/g;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "badge_count"

    const/4 v2, -0x1

    invoke-virtual {v3, v2}, Lcom/instagram/m/b/a;->a(I)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    invoke-virtual {v5, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/b/b;)V

    .line 639
    invoke-virtual {v3, v6, v7}, Lcom/instagram/m/b/a;->a(J)Z

    .line 642
    :cond_0
    return-void

    :cond_1
    move v0, v2

    .line 627
    goto :goto_0

    :cond_2
    move v0, v2

    goto :goto_1

    :cond_3
    move v2, v1

    goto :goto_2
.end method


# virtual methods
.method public a()V
    .locals 1

    .prologue
    .line 646
    invoke-direct {p0}, Lcom/instagram/android/b/m;->b()V

    .line 648
    iget-object v0, p0, Lcom/instagram/android/b/m;->a:Lcom/instagram/android/b/h;

    invoke-static {v0}, Lcom/instagram/android/b/h;->k(Lcom/instagram/android/b/h;)V

    .line 651
    iget-object v0, p0, Lcom/instagram/android/b/m;->a:Lcom/instagram/android/b/h;

    invoke-static {v0}, Lcom/instagram/android/b/h;->f(Lcom/instagram/android/b/h;)Lcom/instagram/android/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/b/e;->a()V

    .line 652
    return-void
.end method
